Problem Note 54129: The %KLEFT and %KCMPRES macro functions generate an error when a null value is passed to them
One of the following error messages is generated when you pass a null value to the %KLEFT or %KCMPRES macro function:
ERROR: Macro function %KLEFT has too few arguments.
or
ERROR: Macro function %KCMPRES has too few arguments.
The example code below generates the error:
%let a=;
%let b=%kcmpres(&a);
To circumvent the problem, replace the null value with a blank. For example:
%let a=%str( );
%let b=%kcmpres(&a);
Operating System and Release Information
SAS System | Base SAS | Linux for x64 | 9.2 TS1M0 | 9.4 TS1M3 |
Linux | 9.2 TS1M0 | 9.4 TS1M3 |
HP-UX IPF | 9.2 TS1M0 | 9.4 TS1M3 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.4 TS1M3 |
64-bit Enabled HP-UX | 9.2 TS1M0 | 9.4 TS1M3 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.4 TS1M3 |
Windows Vista for x64 | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.4 TS1M3 |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Solaris for x64 | 9.2 TS1M0 | 9.4 TS1M3 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.4 TS1M3 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
z/OS | 9.2 TS1M0 | 9.4 TS1M3 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
When you pass a null value to the %KLEFT or %KCMPRES macro function, an error like the following is generated:
ERROR: Macro function %KLEFT has too few arguments.
Type: | Problem Note |
Priority: | low |
Date Modified: | 2014-09-16 15:43:40 |
Date Created: | 2014-09-15 15:00:14 |